package com.doge.walknovel.api

import io.reactivex.functions.Function

class ApiResultMapTransformer<T> : Function<ApiResult<T>, T?> {
    @Throws(Exception::class)
    override fun apply(responseModel: ApiResult<T>): T? {
        ErrorHandler.process(responseModel)
        return responseModel.data
    }
}
